package cn.kgc.mushroomwebui.controller;

import cn.kgc.mushroomcommon.api.DataBaseOperationRemoteService;
import cn.kgc.mushroomcommon.api.ManagerRemoteService;
import cn.kgc.mushroomcommon.pojo.Commodity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/comodity/manager")
public class ComController {
    @Resource
    ManagerRemoteService managerRemoteService;
    @RequestMapping("/selectCommodityAndDetail")
    public Commodity selectCommodityAndDetail(@RequestParam("id") Integer id) {
        return managerRemoteService.selectCommodityAndDetail(id);
    }


}
